import { createStore } from 'vuex'
declare let SessionStorage:any
const store=createStore({
  state: {
    user:SessionStorage.get("user")||{}
  },
  getters: {
  },
  mutations: {
    setUser(state,user){
      state.user=user
      SessionStorage.set("user",user)
    }
  },
  actions: {
  },
  modules: {
  }
})
export default store
